package com.ygou.service;

import java.util.List;

import com.ygou.pojo.Announcement;
import com.ygou.pojo.AnnouncementExample;
import com.ygou.pojo.Users;
import com.ygou.pojo.UsersExample;

public interface AnnouncementService {
	// 根据条件查询(两表联查)
	List<Announcement> findByWhere(String title, Integer annid);

	// 添加公告
	boolean insert(Announcement record);

	// 删除公告
	boolean deleteByPrimaryKey(Integer annid);

	// 根据主键查询详细信息
	Announcement selectByPrimaryKey(Integer annid);

	// 修改公告
	boolean updateByPrimaryKey(Announcement record);

	// 根据条件查询
	List<Announcement> selectByExample();

}
